/* Corrections pour toutes les pages */

/* 1. Réduction de la hauteur du bouton 'Recevoir un appel' dans index.html */
.hero .cta-buttons .btn-secondary,
.hero .cta-buttons a[href*="tel:"],
.hero .cta-buttons a:contains("Recevoir un appel") {
    padding: 8px 20px !important; /* Réduit de 15px 30px à 8px 20px */
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 40px !important; /* Hauteur maximale réduite */
}

/* 2. Ajustements pour les sections hero avec hauteur insuffisante */
.simple-hero {
    min-height: 350px !important; /* Augmente la hauteur minimale */
    padding: 60px 0 !important;
}

/* Hauteur spécifique pour les pages avec plus de contenu */
body.blog-page .simple-hero,
body.documentation-page .simple-hero,
body.guides-page .simple-hero,
body.support-page .simple-hero,
body.statut-page .simple-hero,
body.changelog-page .simple-hero {
    min-height: 400px !important;
    padding: 80px 0 !important;
}

/* 3. Fond vert spécifique pour la page sécurité */
body.securite-page .simple-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
}

/* 4. Ajustements pour les champs de recherche dans blog.html */
body.blog-page .simple-hero {
    min-height: 450px !important;
    padding-bottom: 100px !important;
}

body.blog-page .simple-hero .search-container {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 5. Réorganisation du contenu des sections hero */
.simple-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.simple-hero-content .badge {
    order: -1; /* Place les badges en premier */
    margin-bottom: 10px;
}

.simple-hero-content h1 {
    order: 1;
    margin-bottom: 15px;
}

.simple-hero-content p {
    order: 2;
    margin-bottom: 20px;
}

.simple-hero-content .badges-container {
    order: 3;
    margin-top: 20px;
}

/* 6. Styles pour les badges */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 7. Responsive design */
@media (max-width: 768px) {
    .simple-hero {
        min-height: 300px !important;
        padding: 40px 0 !important;
    }
    
    body.blog-page .simple-hero,
    body.documentation-page .simple-hero,
    body.guides-page .simple-hero,
    body.support-page .simple-hero,
    body.statut-page .simple-hero,
    body.changelog-page .simple-hero {
        min-height: 350px !important;
        padding: 60px 0 !important;
    }
    
    .hero .cta-buttons .btn-secondary {
        padding: 6px 16px !important;
        font-size: 13px !important;
        min-height: 36px !important;
    }
}

/* 8. Corrections spécifiques pour les boutons coupés */
.simple-hero .btn,
.simple-hero .cta-button {
    margin-bottom: 20px;
    padding: 12px 24px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 9. Espacement pour éviter que le contenu soit coupé */
.simple-hero-content > *:last-child {
    margin-bottom: 0;
    padding-bottom: 20px;
}